package movies
{
	import flash.filesystem.File;
	import flash.filesystem.FileMode;
	import flash.filesystem.FileStream;
	public class LocalFile
	{
		public function LocalFile()
		{
		}
		public static function read(url:String):String
		{
			var file:File = new File(url);
			var fileStream:FileStream= new FileStream();
			fileStream.open(file, FileMode.READ);
			var fileTxt:String = fileStream.readUTFBytes(fileStream. bytesAvailable);
			fileTxt = fileTxt.replace('\r\n',"\n");
			fileTxt = fileTxt.replace('\r',"\n");
			fileStream.close();
			return fileTxt;
		}
	}
}